package logic

import (
	"fmt"
	"web-app/dao/mysql"
	"web-app/models"

	"go.uber.org/zap"
)

func GetCommunityList() ([]*models.Community, error) {
	//查询数据库
	return mysql.GetCommunityList()
}
func GetCommunityDetail(id int64) (*models.CommunityDetail, error) {
	data, err := mysql.GetCommunityDetailByID(id)
	fmt.Println(data)
	zap.L().Error("mysql.GetCommunityDetail failed", zap.Error(err))
	return mysql.GetCommunityDetailByID(id)
}
